package com.myproxyStatic;

public class Agenter2 implements SingInterface{

	public SingInterface singer;
	
	public Agenter2(SingInterface singer){
		this.singer = singer;
	}
	
	@Override
	public void sing() {
		long start = System.currentTimeMillis();
		System.out.println("我是经纪人2...");
		System.out.println("签合同");
		
		singer.sing();
		
		System.out.println("结账");
		
		long end = System.currentTimeMillis();
		System.out.println("经纪人2，结束...: "+ (end -start));
		System.out.println();
	}

}
